#include <iostream>
using namespace std;
enum day{sunday, monday, tuesday, wednesday, thursday, firday, saturday};

void display(day d)
{
	switch(d)
	{
		case sunday:
        cout << "sunday" << endl;
        break;
	    case monday:
        cout << "monday" << endl;
        break;
        case tuesday:
        cout << "tuesday" << endl;
        break;
        case wednesday:
        cout << "wednesday" << endl;
        break;
        case thursday:
        cout << "thursday" << endl;
        break;
        case firday:
        cout << "firday" << endl;
        break;
        case saturday:
        cout << "saturday" << endl;
        break;
        
	}
}

void nextday(day &d)
{
	switch(d)
	{
		case sunday:
		d = monday;
		break;
		case monday:
		d = tuesday;
		break;
		case tuesday:
		d = wednesday;
		break;
		case wednesday:
		d = thursday;
		break;
		case thursday:
		d = firday;
		break;
		case firday:
		d = saturday;
		break;
		case saturday:
		d = sunday;
		break;
	}
}

int main()
{
	day today = sunday;
	for (int i=0; i<7; i++)
	{
		cout << "data in day = " << today << endl;
		display(today);
		nextday(today);
	}
	return 0;
}
